package com.lxyk.service;

import com.github.pagehelper.PageInfo;
import com.lxyk.pojo.Customer;

import java.util.List;

/**
 * @ClassName CustomerService
 * @Description TODO
 * @Author FJQ
 * @Date 2022/10/21 15:17
 * @Version 1.0
 **/
public interface CustomerService {
    //查询所有客户信息
    List<Customer> listCustomer();

    //添加客户信息
    int saveCustomer(Customer customer);

    //查询
    List<Customer> searchCustomer(String custName);

    //根据id删除
    int deleteCustomerById(Integer cid);

    //估计id查询
    Customer getCustomerById(Integer cid);

    //修改
    int updateCustomer(Customer customer);


    /**
     * 根据客户名称和手机号搜索满足条件客户信息带分页
     * @param customer
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Customer>listCust(Customer customer,Integer pageNum,Integer pageSize);

}
